package com.crm.model.pojo;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the quotationrecord database table.
 * 
 */
@Entity
@Table(name="quotationrecord")
@NamedQuery(name="Quotationrecord.findAll", query="SELECT q FROM Quotationrecord q")
public class Quotationrecord implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private String id;

	private String approvalrecord;

	private int approvalstatus;

	private String contactinfo;

	private String customer;

	@Temporal(TemporalType.DATE)
	private Date date;

	private String deliveryin;

	private BigDecimal offer;

	private String quotationnumber;

	private String remarks;

	private String salestheme;

	private int transferorder;

	private String transport;

	//bi-directional many-to-one association to Customer
	@ManyToOne
	@JoinColumn(name="recipient")
	private Customer customerBean;

	//bi-directional many-to-one association to Salesopportunity
	@ManyToOne
	@JoinColumn(name="salesopportunities")
	private Salesopportunity salesopportunity;

	//bi-directional many-to-one association to Staff
	@ManyToOne
	@JoinColumn(name="offeror")
	private Staff staff;

	public Quotationrecord() {
	}

	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getApprovalrecord() {
		return this.approvalrecord;
	}

	public void setApprovalrecord(String approvalrecord) {
		this.approvalrecord = approvalrecord;
	}

	public int getApprovalstatus() {
		return this.approvalstatus;
	}

	public void setApprovalstatus(int approvalstatus) {
		this.approvalstatus = approvalstatus;
	}

	public String getContactinfo() {
		return this.contactinfo;
	}

	public void setContactinfo(String contactinfo) {
		this.contactinfo = contactinfo;
	}

	public String getCustomer() {
		return this.customer;
	}

	public void setCustomer(String customer) {
		this.customer = customer;
	}

	public Date getDate() {
		return this.date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public String getDeliveryin() {
		return this.deliveryin;
	}

	public void setDeliveryin(String deliveryin) {
		this.deliveryin = deliveryin;
	}

	public BigDecimal getOffer() {
		return this.offer;
	}

	public void setOffer(BigDecimal offer) {
		this.offer = offer;
	}

	public String getQuotationnumber() {
		return this.quotationnumber;
	}

	public void setQuotationnumber(String quotationnumber) {
		this.quotationnumber = quotationnumber;
	}

	public String getRemarks() {
		return this.remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public String getSalestheme() {
		return this.salestheme;
	}

	public void setSalestheme(String salestheme) {
		this.salestheme = salestheme;
	}

	public int getTransferorder() {
		return this.transferorder;
	}

	public void setTransferorder(int transferorder) {
		this.transferorder = transferorder;
	}

	public String getTransport() {
		return this.transport;
	}

	public void setTransport(String transport) {
		this.transport = transport;
	}

	public Customer getCustomerBean() {
		return this.customerBean;
	}

	public void setCustomerBean(Customer customerBean) {
		this.customerBean = customerBean;
	}

	public Salesopportunity getSalesopportunity() {
		return this.salesopportunity;
	}

	public void setSalesopportunity(Salesopportunity salesopportunity) {
		this.salesopportunity = salesopportunity;
	}

	public Staff getStaff() {
		return this.staff;
	}

	public void setStaff(Staff staff) {
		this.staff = staff;
	}

}